package com.hx.miniblog.pojo.mj;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author wenhao hu
 * @title: VisibilityType
 * @projectName miniBlog
 * @description: TODO
 * @date 2021/12/2915:34
 */
public enum VisibilityType implements IEnum<Integer> {
    /**
     * 公开
     */
    PUBLIC(1,"PUBLIC"),
    /**
     * 私密
     */
    PRIVATE(2,"PRIVATE"),
    /**
     * 仅关注可见
     */
    ONLY_FANS(3,"ONLY_FANS");

    private final int value;
    private final String desc;

    VisibilityType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
